package com.example.trackcircuitdiagnosis.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.trackcircuitdiagnosis.entity.DataEntity;
import com.example.trackcircuitdiagnosis.mapper.DataMapper;
import com.example.trackcircuitdiagnosis.service.DataService;
import com.example.trackcircuitdiagnosis.vo.DataVo;
 import javax.annotation.Resource;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DataServiceImpl extends ServiceImpl<DataMapper, DataEntity> implements DataService {
    @Resource
    private DataMapper dataMapper;

    @Override
    public List<DataVo> getDataWithAnalog() {
        List<DataVo> dataVos = dataMapper.selectByFaultId();

        return dataVos;

    }
}